package com.cn.learn.httpclient.controller;

import com.cn.learn.httpclient.domain.vo.ResultVO;
import com.cn.learn.httpclient.service.ISendRequestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName SendRequestController
 * @Description 发送请求的controller
 * @Author JiJiang
 * @Date 2023/5/20 15:32
 * @Version 1.0
 */
@RestController
@RequestMapping("/request/send")
public class SendRequestController {



    @Resource
    private ISendRequestService sendRequestService;



    @GetMapping("/get")
    public ResultVO<Object> sendGetRequest() {
        return sendRequestService.getRequest();
    }

}
